package com.cloudeasy.post.field;


import java.util.ArrayList;
import java.util.List;

/**
 * 帖子字段
 */
public class PostField {
    private static List<String> filed = new ArrayList<>();

    static {
        filed.add("reply_count");
        filed.add("collect_count");
        filed.add("last_reply_time");
        filed.add("publish_time");
    }

    public static List<String> getFieldList() {
        return filed;
    }

    /**
     * 是否存在field字段
     *
     * @param field 字段
     * @return {@link Boolean}
     */
    public static Boolean contains(String field) {
        return filed.contains(field);
    }
}
